//
//  SearchController.swift
//  eBooks
//
//  Created by JunMing on 2019/11/18.
//  Copyright © 2019 赵俊明. All rights reserved.
//

import UIKit

class SearchController: JMSearchController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        registerEvent(eventName: kEBookFadebackEventName, block: { [weak self] _ in
            let feedback = JMFeedbackController()
            self?.navigationController?.pushViewController(feedback, animated: true)
        }, next: false)
    }
    
    override func pushViewController(_ bookName:String) {
        let download = DownloadController()
        download.bookName = bookName
        navigationController?.pushViewController(download, animated: true)
    }
}
